/**
 * @author Mouarf
 */
package com.luginf.mock;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.luginf.bo.People;
import com.luginf.bo.Summary;


/**
 * @author Mouarf
 *
 */
public class SummaryMock {

	public static final List<Summary> mockSummary(int nbElt) {
		List<Summary> summaryList = new ArrayList<Summary>();
		People buyer = new People();
		buyer.setName("buyer");
		List<People> participents = new ArrayList<People>();
		participents.add(buyer);
		for (int i = 0; i < nbElt; i++) {
			Summary summary = new Summary();
			summary.setDate(new Date(2012, 3, 9));
			summary.setLabel("label: "+i);
			summary.setPrice(new BigDecimal(10*i*Math.random()));
			summary.setBuyer(buyer);
			summary.setParticipents(participents);
			summaryList.add(summary);
		}
		return summaryList;
	}
}
